﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BattleThis.Core.Battle
{
	public class BalanceInfluance : IBattleInfluence
	{
		public float Calculate( BattleContext context )
		{
			if( context == null )throw new ArgumentNullException( "context" );

			if( context.Attacker.Balance.Effective.Contains( context.Defender.Type ) )
				return context.Attacker.Weapon.Damage * 0.1f;

			return 0;
		}
	}
}